import Vue from 'vue'
import Vuex from 'vuex'
import login from './modules/hao/index'
import userInfo from './modules/hao/infomation'

Vue.use(Vuex)
export default new Vuex.Store({
    modules: { login, userInfo },
    state: {
        direction: 'forward'
    },
    mutations: {
        updateDirection (state, direction) {
            state.direction = direction
        }
    },
    actions: {},
    getters: {
        theImg: state => state.userInfo.userImg,
        theRem: state => state.userInfo.remData,
        theUname: state => state.userInfo.uname
    }
})
